package edu.zju.gis.dldsj.model;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
public class Road implements Jsonable, Geom {
    private String pk_id;
    private String map_id;
    private String link_id;
    private Integer kind_num;
    private String kind;
    private Integer road_width;
    private Integer direction;
    private Integer toll;
    private Integer const_st;
    private String undcon_crid;
    private String snode_id;
    private String enode_id;
    private Integer func_class;
    private BigDecimal road_length;
    private Integer detail_city;
    private Integer through;
    private Integer unthru_crid;
    private Integer ownership;
    private Integer road_cond;
    private Integer special;
    private String admin_codel;
    private String admin_coder;
    private Integer urban_flag;
    private String oneway_crid;
    private String access_crid;
    private Integer speed_class;
    private Integer lanenum_s2e;
    private Integer lanenum_e2s;
    private Integer lanenum;
    private String vehcl_type;
    private Integer elevated;
    private Integer structure;
    private String usefee_crid;
    private String usefee_type;
    private Integer spdlmt_s2e;
    private Integer spdlmt_e2s;
    private Integer spdsrc_s2e;
    private Integer spdsrc_e2s;
    private Integer dc_type;
    private String geom;

    @Override
    public String id() {
        return pk_id;
    }
}